package com.sptpc.practice.service;

import com.sptpc.practice.error.BusinessException;
import com.sptpc.practice.service.model.OrderModel;

import java.util.List;

public interface OrderService {

    OrderModel createOrder(Integer userId, Integer itemId, Integer promoId, Integer amount) throws BusinessException;

    List<OrderModel> listOrder();
}
